<template>
  <div :class="{ global_dark: Store.darkMode }">
    <LeftMenu />
    <router-view v-slot="{ Component, route }">
      <transition :name="route.meta?.transitionName || 'fade'">
        <component :is="Component" />
      </transition>
    </router-view>
  </div>
</template>

<script>
import LeftMenu from "./components/LeftMenu.vue";
import { provide } from "vue";
import Store from "./store";

export default {
  components: { LeftMenu },
  setup() {
    provide('store', Store)
    return { Store }
  }
}
</script>

<style lang="less">
* {
  font-family: PingFang SC, HarmonyOS_Medium, Helvetica Neue, Microsoft YaHei,
    sans-serif;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: rgb(29, 29, 29);
}

#app {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;

  .page {
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    position: absolute;
    z-index: 1000;
    color: white;
  }

  .page_padding {
    padding: 64px 10%;
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;

  &.tips {
    display: flex;
    align-items: center;
    position: relative;

    &::before {
      content: "H";
      width: 64px;
      font-size: 16px;
      color: #f5d93b;
      font-weight: 900 !important;
      position: relative;
      text-align: center;
    }
  }
}

p {
  margin: 0;
  display: flex;
  align-items: center;
  position: relative;

  &::before {
    content: "P";
    width: 64px;
    font-size: 16px;
    color: #f5d93b;
    position: relative;
    text-align: center;
  }
}

a {
  text-decoration: none;

  &:link {
    color: white;
    text-decoration: none;
  }

  &:visited {
    color: white;
    text-decoration: none;
  }

  &:hover {
    color: white;
    text-decoration: none;
  }

  &:active {
    color: white;
    text-decoration: none;
  }
}
</style>
